package com.gdk.dao;

import java.util.List;
import java.util.Map;

public interface SmallticketDao {
	/**
	 * 添加小票
	 */
	public int addSmallticket(Map<String,Object> map);
	
	/**
	 * 分页查询小票的列表
	 */
	public List<Map<String, Object>> allSmallticket(Map<String, Object> map);
	
	/**
	 * 查询小票的数量
	 */
	public int  countSmallticket();
	
	/**
	 * 根据抵扣券id拆线呢抵扣券的详情
	 */
	public List<Map<String, Object>> SmallticketDetail(Map<String, Object> map);
	
	/**
	 * 修改抵扣券
	 */
	public int updateSmallticket(Map<String, Object> map);
	
	/**
	 * 删除抵扣券
	 */
	public int deleteSmallticket(Map<String, Object> map);

	/**
	 * 查询出所有抵扣券
	 * */
	 List<Map<String, Object>> findAllSmallTicket();

	
	/**
	 * 查询抵用券是否绑定正在进行中的促销活动
	 */
	public List<Map<String,Object>> selectbindticket(Map<String, Object> map);
	
	//查询抵扣卡详情
	Map<String,Object> selectSmallticketDetail(Map<String, Object> map);
	
	
	
	//新增优惠券
	int addCard(Map<String,Object> map);
	//查询所有优惠券
	List<Map<String,Object>> findAllCard();
	//修改优惠券状态
	int updateCardStatus(Map<String,Object> map);
	//查询优惠券详情
	Map<String,Object> findCardDetails(Map<String,Object> map);
	//修改优惠券
	int updateCardDetails(Map<String,Object> map);
	
}
